from shapes_new import *
from World import *
from Gui import *

world = TurtleWorld()
bob = Turtle()
bob.delay = 0

world.ca().text([5,10], 'Destoryed Village')
def basicHouse(t, size=100):
    square(t, size)
    move(t, -size*.1, size)
    equilateral_tri(t, size*1.2)
    move(t, size*.1, -size)
    
     
def door(t, size=100):
    rect(t, size*.2, size*.4)
    move(t, size*.15, size*.2)
    arc(t, size*.025)
    move(t, -size*.15, -size*.2)

def advhouse(t, size=100):
    basicHouse(t, size)
    move(t, size*.3, 0)
    door(t, size)
    move(t, -size*.3, 0)
    window(t, size)
    t.lt()
    garage(t)
   
def garage(t, size=100):
	rect(t, size)
	move(t, 0, size*.3)
	square(t, size*1.5*.3)
    
def advhouse2(t, size=100):
    basicHouse(t, size)
    move(t, size*.3, 0)
    door(t, size)
    move(t, -size*.3, 0)
    window2(t, size)
    

def window(t, size=100):
    move(t, 0, size*.6)
    move(t, size*.2, 0)
    square(t,size*.1)
    move(t, 0, -size*.6)
    move(t, -size*.2, 0)
    
def window2(t, size=100):
    move(t, 0, size*.6)
    move(t, size*.8, 0)
    square(t,size*.1)
    move(t, 0, -size*.6)
    move(t, -size*.2, 0)
    
def village(t, size=100):
    advhouse(t)
    move(t, -size*2.5, 0)
    advhouse2(t)
    move(t, size*4, -size*.10)
    advhouse(t)
    move(t, size*4.3, 0)
    advhouse2(t)
    move(t, -size*4.3, -size*2.5)
    advhouse(t)
    move(t, -size*.500, -size*2.5)
    advhouse2(t)
    move(t, -size*2, 0)
    
    
village(bob)
wait_for_user()



    

